<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<title>My JSP 'dbc.jsp' starting page</title>
   <style type="text/css" media="all">
      @import url("${ctx}/css/maven-base.css"); @import url("${ctx}/css/maven-theme.css"); @import url("${ctx}/css/site.css"); @import
      url("${ctx}/css/screen.css");
    </style>
    <link rel="stylesheet" href="${ctx}/./css/print.css" type="text/css" media="print" />
</head>
<body>
	<p align="right">
	您好！${loginUser.username}
	<a href="${ctx}/user/manager?func=logout">退出</a> 
	</p>
    <center> 
	<a href="${ctx}/user/addUser.jsp">增加管理员</a>  
	<a href="${ctx}/message/manager?func=all">显示留言</a>&nbsp;&nbsp;&nbsp;&nbsp;
	<br>
	<display:table name="${list}" id="obj" requestURI="${ctx}/user/manager" pagesize="3" export="true">
		<display:column property="id" title="ID"/>
		<display:column property="username" title="用户名"/>
		<display:column property="password" title="密码"/>
		<display:column title="用户类别">
			<c:if test="${obj.roleId==1}">
			管理员
			</c:if>
			<c:if test="${obj.roleId==2}">
			普通用户
			</c:if>
		</display:column>
		<display:column title="操作">
            <a href="${ctx}/user/manager?func=delete&id=${obj.id}">删除</a>
			<a href="${ctx}/user/manager?func=edit&id=${obj.id}">修改</a>
		</display:column>
	</display:table>
	</center>

</body>
</html>
